home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 22
/
Aminet 22 (1997)(GTI - Schatztruhe)[!][Dec 1997].iso
/
Aminet
/
dev
/
misc
/
gms_e.lha
/
GMSDev
/
EModules
/
graphics
/
blitter.e
next >
Wrap
Text File
|
1997-09-15
|
6KB
|
173 lines
/*
** $VER: blitter.e V0.8B
**
** Blitter Object Definitions.
**
** (C) Copyright 1996-1997 DreamWorld Productions.
** All Rights Reserved
*/
OPT MODULE
OPT EXPORT
OPT PREPROCESS
MODULE 'gms/dpkernel','graphics/pictures','graphics/screens','system/register'
->***************************************************************************
->* Bitmap Object.
CONST BMPVERSION = 1,
TAGS_BITMAP = $FFFB0000 OR ID_BITMAP
OBJECT bitmap
head[1] :ARRAY OF head
data :LONG /* Pointer to bitmap data area */
width :INT /* Width */
bytewidth :INT /* ByteWidth */
height :INT /* Height */
scrtype :INT /* Screen type */
planes :INT /* Amount of planes */
linemodulo :LONG /* Line differential */
planemodulo :LONG /* Plane differential */
owner :LONG /* Bitmap owner */
restore :LONG /* Restore list for this bitmap, if any */
size :LONG /* Total size of the bitmap in bytes */
ENDOBJECT
/***************************************************************************
** Bob Object.
*/
CONST BOBVERSION = 1,
TAGS_BOB = $FFFB0000 OR ID_BOB
OBJECT bob
head[1] :ARRAY OF head
gfxdata :LONG -> Pointer to base of BOB graphics.
maskdata :LONG -> Pointer to base of BOB masks.
frame :INT -> Current frame.
framelist :LONG -> Pointer to frame list.
srcwidth :INT -> Modulo (skip in source) in bytes.
width :INT -> Width in pixels.
bytewidth :INT -> Width in bytes.
height :INT -> Height in pixels.
xcoord :INT -> To X pixel.
ycoord :INT -> To Y pixel.
clipLX :INT -> Left X border in bytes (0/8)
clipTY :INT -> Top Y border (0)
clipRX :INT -> Right X border in bytes (320/8)
clipBY :INT -> Bottom Y border (256)
fplane :INT -> 1st Plane to blit to (planar only)
planes :INT -> Amount of planes
planesize :LONG -> Size Of Plane Source (planar only)
attrib :LONG -> Attributes like CLIP and MASK.
picturetags :LONG -> Pointer to a picture struct (bob origin).
empty :INT -> Reserved
srcmaskwidth :INT
picture :PTR TO picture
directlist :LONG
amtframes :INT
screen :PTR TO screen
bitmap :PTR TO bitmap
buffers :INT
maskcoords :PTR TO framelist
propwidth :INT
propheight :INT
directmasks :LONG
ENDOBJECT
CONST BBA_GfxData = TAPTR OR 12,
BBA_MaskData = TAPTR OR 16,
BBA_Frame = TWORD OR 20,
BBA_FrameList = TAPTR OR 22,
BBA_SrcWidth = TWORD OR 26,
BBA_Width = TWORD OR 28,
BBA_ByteWidth = TWORD OR 30,
BBA_Height = TWORD OR 32,
BBA_XCoord = TWORD OR 34,
BBA_YCoord = TWORD OR 36,
BBA_ClipLX = TWORD OR 38,
BBA_ClipTY = TWORD OR 40,
BBA_ClipRX = TWORD OR 42,
BBA_ClipBY = TWORD OR 44,
BBA_FPlane = TWORD OR 46,
BBA_Planes = TWORD OR 48,
BBA_PlaneSize = TLONG OR 50,
BBA_Attrib = TLONG OR 54,
BBA_PictureTags = TAPTR OR 58,
BBA_Empty = TWORD OR 62,
BBA_SrcMaskWidth = TWORD OR 64,
BBA_Picture = TAPTR OR 66,
BBA_DirectList = TAPTR OR 70,
BBA_AmtFrames = TWORD OR 74,
BBA_Screen = TAPTR OR 76,
BBA_Bitmap = TAPTR OR 80,
BBA_Buffers = TWORD OR 84,
BBA_MaskCoords = TAPTR OR 86,
BBA_PropWidth = TWORD OR 90,
BBA_PropHeight = TWORD OR 92,
BBA_DirectMasks = TAPTR OR 94
/***********************************************************************************
** Multple Bob object.
*/
CONST MBOBVERSION = 1,
TAGS_MBOB = $FFFB0000 OR ID_MBOB
OBJECT mbob
head[1] :ARRAY OF head -> Standard header.
gfxdata :LONG -> Pointer to base of BOB graphics.
maskdata :LONG -> Pointer to base of BOB masks.
amtentries :INT -> Amount of entries.
framelist :LONG -> Pointer to frame list.
srcwidth :INT -> Modulo (skip in source) in bytes.
width :INT -> Width in pixels.
bytewidth :INT -> Width in bytes.
height :INT -> Height in pixels.
entrylist :LONG -> Pointer to entry list.
clipLX :INT -> Left X border in bytes (0/8)
clipTY :INT -> Top Y border (0)
clipRX :INT -> Right X border in bytes (320/8)
clipBY :INT -> Bottom Y border (256)
fplane :INT -> 1st Plane to blit to (planar only)
planes :INT -> Amount of planes
planesize :LONG -> Size Of Plane Source (planar only)
attrib :LONG -> Attributes like CLIP and MASK.
picturetags :LONG -> Pointer to a picture struct (bob origin).
entrysize :INT -> Size of each entry in the list.
srcmaskwidth :INT ->
picture :PTR TO picture ->
directlist :LONG ->
amtframes :INT ->
screen :PTR TO screen ->
bitmap :LONG -> Pointer to Bob's Bitmap.
buffers :INT -> Amount of buffers in dest screen.
maskcoords :LONG -> Pointer to frame list for masks.
propwidth :INT -> Expected width of source picture.
propheight :INT -> Expected height of source picture.
directmasks :LONG ->
ENDOBJECT
OBJECT framelist
gfx_xcoord :INT
gfx_ycoord :INT
msk_xcoord :INT
msk_ycoord :INT
ENDOBJECT
CONST CLIP = $00000001,
MASK = $00000002,
STILL = $00000004,
CLEAR = $00000008,
RESTORE = $00000010,
FILLMASK = $00000040,
GENMASK = $00000082,
GENMASKS = $00000082,
CLRMASK = $00000100,
CLRNOMASK = $00000000
CONST SKIPIMAGE = 32000,
SKIPPIXEL = -32000